﻿<div align="center">

<table class="course_table">
    <thead>
        <tr>
            <th>Khóa học</th>
            <th>Thời gian</th>
            <th>Thời lượng (giờ)</th>
            <th>Địa điểm</th>
        </tr>
    </thead>
    <tbody>
        <fly:list data="list">
            <tr month="{list.monthStart}">
                <td><a class="list_course_title" href="{BaseUrl}/schedule/{lang}/{list.id}">{list.course}</a></td>
                <td style="text-align:center">{list.time}</td>
                <td style="text-align:center">{list.timeHrs}</td>
                <td style="text-align:center">{list.location}</td>
            </tr>
        </fly:list>
    </tbody>
</table>

</div>

<script type="text/javascript">
    var curMonth = undefined;
    $('tr[month]').each(function () {
        var m = $(this).attr('month');
        if (curMonth != m) {
            var html = '<tr class="schedule_month"><td>Tháng ' + m + '</td><td></td><td></td><td></td></tr>';
            $(this).before(html);
        }
        curMonth = m;
    });
</script>